<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="<c:url value='/resources/styles/main.css' />" type="text/css"/>
    <%--<link type="text/css" rel="stylesheet" href="<c:url value='/resources/ckeditor/_samples/sample.css' />" />--%>
    <script type="text/javascript" src="<c:url value='/resources/scripts/datePicker/WdatePicker.js' />"></script>

    <script type="text/javascript">

    </script>
    <title>内容添加</title>
</head>
<body>

<table class="pagination" style="padding-left: 70px;">
    <tr>
        <td>
            <c:if test='${cate=="0"}'><a href="<c:url value='/admin/listActRecord.do?cate=${cate}' />">返回本期亮点</a></c:if>
            <c:if test='${cate=="1"}'><a href="<c:url value='/admin/listActRecord.do?cate=${cate}' />">返回精彩回顾</a></c:if>

        </td>
    </tr>
</table>
<form enctype="multipart/form-data" id="addContent" name="addContent" action="<c:url value='/admin/addActRecordAction.do' />" method="post">

        <table class="list">

            <tr>
                <td>序号</td>
                <td>
                    <input type="text" id="seq" name="seq" style="margin-top: 3px;margin-left: 3px;"/>
                </td>
            </tr>
            <tr>
                <td>文件夹</td>
                <td>
                    <select id='folderId' name="folderId">
                        <option value="0">--请选择--</option>
                        <c:forEach var='data' items="${folders}">
                        <option value=${data.id}>${data.title}</option>
                        </c:forEach>

                        </select>
                </td>
            </tr>
            <tr>
                <td>日期</td>
                <td>
                    <input type="text" id="activityDay" name="activityDay"  class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd ', readOnly:true})"/>
                </td>
            </tr>
            <tr>
                <td>档案名称</td>
                <td>
                    <input type="text" id="title" name="title" />
                </td>
            </tr>
            <tr>
                <td>选择档案文件</td>
                <td>
                    <input type="file" id="fileName" name="fileName" value="上传"></intput>
                    <input type='hidden' id='cate' name='cate' value='${cate}' />
                </td>
            </tr>
            <tr>
                <td colspan="2"><input type='submit' value="提交" /></td>

            </tr>
        </table>
</form>
</body>
</html>